package blazingbubble.gui;


import java.util.HashMap;

import javax.swing.JPanel;


public class PanelRegistry {
	public static PanelRegistry instance = new PanelRegistry();
	
	private HashMap<String, JPanel> panelMap = new HashMap<String, JPanel>();
	
	private PanelRegistry(){
	}
	
	public static PanelRegistry getInstance(){
		return instance;
	}
	
	public void registerPanel(String name, JPanel panel){
		panelMap.put(name, panel);
	}
	
	public JPanel lookUpPanel(String name){
		return panelMap.get(name);
	}
		 
}
